Introduction to Python

Setting Up Anaconda Notebooks

Jupyter Notebooks can be opened from Anaconda Navigator. Install by installing Anaconda (Navigator should automatically install alongside). After installing, open the Navigator. If you wish, you may first set up an environment. Then, hit the "Launch" button below Jupyter Notebook.

anaconda-navigator.jpg

The Jupyter Notebook home page should open in a new window. From the home page, hit "New" and then "Python 3 (ipykernel)".

open-new-notebook.jpg

This will open a new notebook for you.

new-notebook.jpg

You can also hit "Upload" from the home page to upload existing notebooks you have downloaded.

new-notebook.jpg

These will show up as ".ipynb" files. Click on them to open.

new-notebook.jpg

That's it for opening Notebooks. Congratulations!

Using Colab Notebooks

We can also open Notebooks online at Google colab. Select the "File" tab and hit "New notebook".

new-colab.jpg

If you instead hit "Upload notebook", you can upload an existing notebook. You're all set!

Mathematical Python

Link to Colab.
Download Notebook.

Plotting Functions

We will be using matplotlib for plotting.

Example with plotting the Mandlebrot set.